package com.pactera.madp.cp.api.entity.sensitive;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @description:智能风控-敏感词监控表
 */
@Data
@TableName("cp_sensitive_word_monitor")
@ApiModel(value = "敏感词监控")
@EqualsAndHashCode(callSuper = false)
public class SensitiveWordsMonitorEntity extends BaseEntity<SensitiveWordsMonitorEntity> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业id")
    private Integer corp_id;//企业id

    @ApiModelProperty(value = "敏感词词库id")
    private Integer sensitiveWordId;//敏感词词库表id(cp_sensitive_word.id)

    @ApiModelProperty(value = "敏感词词库表名称")
    private String sensitiveWordName;//敏感词词库表名称(cp_sensitive_word.name)

    @ApiModelProperty(value = "触发来源【1-客户2-员工】")
    private Integer source;//触发来源【1-客户2-员工】

    @ApiModelProperty(value = "触发人id")
    private Integer triggerId;//触发人id

    @ApiModelProperty(value = "触发人名称")
    private String triggerName;//触发人名称

    @ApiModelProperty(value = "触发时间")
    private Date triggerTime;//触发时间

    @ApiModelProperty(value = "接收者类型【1-成员2-外部联系人3-群聊】")
    private Integer receiverType;//接收者类型【1-成员2-外部联系人3-群聊】

    @ApiModelProperty(value = "接收者ID")
    private Integer receiverId;//接收者ID

    @ApiModelProperty(value = "接收者名称")
    private String receiverName;//接收者名称

    @ApiModelProperty(value = "触发消息ID")
    private Long workMessageId;//触发消息ID【cp_work_message.seq】

    @ApiModelProperty(value = "会话内容")
    private String chatContent;//会话内容

}
